import request from '@/utils/request'

export function messagelist(data) {
  return request({
    url: '/messagelist',
    method: 'post',
    params: data
  })
}

export function messageDetail(data) {
  return request({
    url: '/messagedetail',
    method: 'post',
    params: data
  })
}

export function createmessage(data) {
  return request({
    url: '/messageadd',
    method: 'post',
    data
  })
}

export function updatemessage(data) {
  return request({
    url: '/devicedataupdate',
    method: 'post',
    data
  })
}
